package com.alibaba.algo.cooperation.usercomponent.service.app;

import com.alibaba.algo.cooperation.common.BaseResult;
import com.alibaba.algo.cooperation.usercomponent.vo.req.app.CreateFunctionRequestVO;
import com.alibaba.algo.cooperation.usercomponent.vo.req.app.DeleteFunctionRequestVO;
import com.alibaba.algo.cooperation.usercomponent.vo.req.app.UpdateFunctionRequestVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 类FunctionInfoService.java的实现描述：功能 service
 *
 * @author nieganggang 2021-03-12 16:08:17
 */
@FeignClient(url="${feign.userCenterUrl:}", value = "usercenter-service", contextId = "usercenter-app")
public interface FunctionInfoService {

    @RequestMapping(value = "/functionInfo/insert", method = RequestMethod.POST)
    void insert(@RequestBody CreateFunctionRequestVO vo);

    @RequestMapping(value = "/functionInfo/update", method = RequestMethod.POST)
    void update(@RequestBody UpdateFunctionRequestVO vo);

    @RequestMapping(value = "/functionInfo/delete", method = RequestMethod.POST)
    void delete(@RequestBody DeleteFunctionRequestVO vo);

    @RequestMapping(value = "/functionInfo/selectList", method = RequestMethod.POST)
    BaseResult selectList();

}
